package com.smartlifev30.baiwei.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.smartlifev30.R;
import com.smartlifev30.baiwei.adapter.LinkageAdapter;
import com.smartlifev30.mvp.presenter.BasePresenter;

import java.util.ArrayList;

/**
 * @author tys
 * @date 2018/8/20
 */

public class LinkageActivity extends BaseActivity {
    private RecyclerView recyclerView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_linkge);
        initView();
    }


    private void initView() {
        recyclerView = findViewById(R.id.linkage_recycler_view);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(new LinkageAdapter(this, new ArrayList<>()));
    }

    @Override
    protected BasePresenter createPresent() {
        return null;
    }

    public void titleBack(View view) {
        onBackPressed();
    }
}
